from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from db.google.util import dbutil

class MainPage(webapp.RequestHandler):
    
    
    def get(self):
        self.response.headers['Content-Type'] = 'text/xml'
        a = dbutil(self.response.out.write)
        a.add_one_feed("http://feedparser.org/docs/examples/rss20.xml")


application = webapp.WSGIApplication([('/', MainPage)], debug=True)


def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
